package structure.Composite;

import java.util.List;

/**
 * Created by LYJ on 2016/10/19.
 */
public abstract class Component {
    protected String name;

    public Component(String name) {
        this.name = name;
    }
    protected abstract void add(Component component);
    protected abstract void remove(Component component);
    protected abstract void operation(int depth);
    protected abstract List<Component> getChildren();
}
